Get

Function

This API is used to get parameter for Alarm >IO Alarm(cloud dedicated) > Alarm Input.

Request Message

None.

Sampel:

POST /API/AlarmConfig/IO/Get HTTP/1.1
{
    "version": "1.0",
    "data": {}
}

Response Message

See Alarm > IO Alarm(cloud dedicated) > Alarm Input > Range > Parameter Description > Table 1 for parameter description.

Sampel:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {"channel_info": {"Local<-1": {
        "alarm_type": "Normally-Open",
        "alarm_settings": "Disable",
        "alarm_out": [],
        "post_recording": "5",
        "record_enable": true,
        "send_email": false,
        "ftp_picture_upload": false,
        "ftp_video_upload": false,
        "light_linkage": true,
        "siren_linkage": true,
        "schedule_list": [{
            "enable": true,
            "weekday": [
                "Sunday",
                "Monday",
                "Tuesday",
                "Wednesday",
                "Thursday",
                "Friday",
                "Saturday"
            ],
            "start_time": 0,
            "end_time": 1440
        }],
        "ptz_linkage": {
            "ptz_linkage_data": [
                "CH8=None=preset_dwell_time0=num1-1-1"
            ]
        }
    }}}
}

Error Code

See Response Messages Body and Common error_code for more information.